package com.lagou.com.lagou.homework.Modules2.item3;

public class InterSetMeal extends ShareAbstract{
    private int interLiul;
    private int mouZF;

    public InterSetMeal() {
    }

    @Override
    public void show4() {
        System.out.println("InterSetMeal重新ShareAbstract的show()4");
        System.out.println("继承抽象类，显示套餐");
    }

    public InterSetMeal(int interLiul, int mouZF) {
        setInterLiul(interLiul);
        setMouZF(mouZF);
    }

    public int getInterLiul() {
        return interLiul;
    }

    public void setInterLiul(int interLiul) {
        //if ()
        this.interLiul = interLiul;
    }

    public int getMouZF() {
        return mouZF;
    }

    public void setMouZF(int mouZF) {
        this.mouZF = mouZF;
    }

    public void show2() {
        System.out.println("上网流量：" + getInterLiul() + ",每月资费：" + getMouZF());
        show4();
    }
}
